{extend name="public:base"}
{block name="main"}
<form role="form">
    <div class="row">
        <div class="col-sm-3 col-xs-12 ">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon">开始时间:</span>
                    <input type="date" name="start" class="form-control" value="{:input('start')}">
                </div>
            </div>
        </div>
        <div class="col-sm-3 col-xs-12 ">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon">结束时间:</span>
                    <input type="date" name="end" class="form-control" value="{:input('end')}">
                </div>
            </div>
        </div>
        <div class="col-sm-3 col-xs-12 ">
            <div class="form-group">
                <div class="input-group">
                    <div class="btn-group">
                        <button type="submit" class="btn btn-success" title="立即搜索"><i class="fa fa-fw fa-search"></i></button>
                        {if condition="(input('get.start') gt '') OR (input('get.end') gt '')"}
                        <a href="{:Url('admin/loginlog')}" class="btn btn-default" title="查看全部"><i class="fa fa-close"></i></a>
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<table class="table table-bordered">
    <tbody>
    <tr>
      <th>ID</th>
      <th>管理员名称</th>
      <th>登录时间</th>
    </tr>
    
    {foreach $list as $v}
    <tr>
      <td>{$v['id']}</td>
      <td>{$v['name']}</td>
      
      <td>{$v['addtime']|stringtime}</td>
    </tr>
    {/foreach}

  </tbody>
</table>
{/block}
{block name="foot"}{$page}{/block}